package edu.spec.sms.model.lecture;


import java.util.Date;

/**
 * Created by MadFrog on 2017/5/11.
 */
public class LectureDto {

    private int id;
    // 主题
    private String title;
    // 概要
    private String summary;
    // 主讲人
    private String speaker;
    // 开始时间
    private Date startTime;
    // 持续时间
    private Integer duration;
    // 结束时间
    private Date endTime;
    // 地点
    private String location;
    // 注意事项
    private String notes;
    // 讲座海报，分辨率为320*200
    private String snapshoot;
    // 微信宣传新闻地址
    private String wxNewsUrl;
    // 签到状态 1已成功签到，其他未签到
    private Integer signIn;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getSpeaker() {
        return speaker;
    }

    public void setSpeaker(String speaker) {
        this.speaker = speaker;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getSnapshoot() {
        return snapshoot;
    }

    public void setSnapshoot(String snapshoot) {
        this.snapshoot = snapshoot;
    }

    public String getWxNewsUrl() {
        return wxNewsUrl;
    }

    public void setWxNewsUrl(String wxNewsUrl) {
        this.wxNewsUrl = wxNewsUrl;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getSignIn() {
        return signIn;
    }

    public void setSignIn(Integer signIn) {
        this.signIn = signIn;
    }

    public LectureDto() {
    }

    public LectureDto(Lecture l, Integer signIn) {
        this.setId(l.getId());
        this.setTitle(l.getTitle());
        this.setSummary(l.getSummary());
        this.setSpeaker(l.getSpeaker());
        this.setStartTime(l.getStartTime());
        this.setDuration(l.getDuration());
        this.setEndTime(l.getEndTime());
        this.setLocation(l.getLocation());
        this.setNotes(l.getNotes());
        this.setSnapshoot(l.getSnapshoot());
        this.setWxNewsUrl(l.getWxNewsUrl());

        this.setSignIn(signIn);
    }
}
